/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.asset.model;

import com.yunhoo.base.model.Department;
import com.yunhoo.base.model.Person;
import java.util.Date;

/**
 * 资产
 *
 * @author Administrator
 */
public class Asset {

    private int id;
    private String orgCode;//单位编码
    private String assetCode = "";//资产代码
    private String assetName = "";//资产名称
    private String model = "";//规格型号
    private String brand = "";//品牌
    private String manufacture = "";//厂商
    private String measureUnit = "";//计量单位
    private Date purchDate = new Date();//购入日期
    private Date shelfLife = new Date();//保质期
    private Department dept = new Department();
    private Person person = new Person();//使用人
    private Double price = 0d;//单价
    private String classCode = "";//资产国标码
    private String className = "";//资产国标名称
    private String useStatus = "";//使用状况 :在用，报废，报损，其他
    private String memo = "";//备注
    private boolean checkFlag = false;//审核标示 0  未通过  1 通过
    private Person auditor = new Person();//审核人
    private Date auditDate = new Date();//审核日期
    private boolean selected = false;
    private String place = "";//保管地点    
    private Person keeper = new Person();//保管人
    private int fromProcure = 0;//是否由采购生成 1：是 0：否
    
    
    //方便动态查询添加
    private Double priceB;
    private Double priceE;
    private Date purchDateB;
    private Date purchDateE;
    private Date shelfLifeB;
    private Date shelfLifeE;

    public String getAssetCode() {
        return assetCode;
    }

    public void setAssetCode(String assetCode) {
        this.assetCode = assetCode;
    }

    public String getAssetName() {
        return assetName;
    }

    public void setAssetName(String assetName) {
        this.assetName = assetName;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getManufacture() {
        return manufacture;
    }

    public void setManufacture(String manufacture) {
        this.manufacture = manufacture;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public Date getPurchDate() {
        return purchDate;
    }

    public void setPurchDate(Date purchDate) {
        this.purchDate = purchDate;
    }

    public Date getShelfLife() {
        return shelfLife;
    }

    public void setShelfLife(Date shelfLife) {
        this.shelfLife = shelfLife;
    }

    public String getClassCode() {
        return classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getUseStatus() {
        return useStatus;
    }

    public void setUseStatus(String useStatus) {
        this.useStatus = useStatus;
    }

    public Department getDept() {
        return dept;
    }

    public void setDept(Department dept) {
        this.dept = dept;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getAuditDate() {
        return auditDate;
    }

    public void setAuditDate(Date auditDate) {
        this.auditDate = auditDate;
    }

    public Person getAuditor() {
        return auditor;
    }

    public void setAuditor(Person auditor) {
        this.auditor = auditor;
    }

    public boolean isCheckFlag() {
        return checkFlag;
    }

    public void setCheckFlag(boolean checkFlag) {
        this.checkFlag = checkFlag;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public Double getPriceB() {
        return priceB;
    }

    public void setPriceB(Double priceB) {
        this.priceB = priceB;
    }

    public Double getPriceE() {
        return priceE;
    }

    public void setPriceE(Double priceE) {
        this.priceE = priceE;
    }

    public Date getPurchDateB() {
        return purchDateB;
    }

    public void setPurchDateB(Date purchDateB) {
        this.purchDateB = purchDateB;
    }

    public Date getPurchDateE() {
        return purchDateE;
    }

    public void setPurchDateE(Date purchDateE) {
        this.purchDateE = purchDateE;
    }

    public Date getShelfLifeB() {
        return shelfLifeB;
    }

    public void setShelfLifeB(Date shelfLifeB) {
        this.shelfLifeB = shelfLifeB;
    }

    public Date getShelfLifeE() {
        return shelfLifeE;
    }

    public void setShelfLifeE(Date shelfLifeE) {
        this.shelfLifeE = shelfLifeE;
    }

    public String getPlace() {
        if (place == null) {
            place = "";
        }
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public Person getKeeper() {
        return keeper;
    }

    public void setKeeper(Person keeper) {
        this.keeper = keeper;
    }

    public int getFromProcure() {
        return fromProcure;
    }

    public void setFromProcure(int fromProcure) {
        this.fromProcure = fromProcure;
    }

    public String getMeasureUnit() {
        return measureUnit;
    }

    public void setMeasureUnit(String measureUnit) {
        this.measureUnit = measureUnit;
    }
}
